<template>
  <div>
    <div>
        <h4>产科史（分娩胎次）</h4>
        <el-row type="flex" justify="space-between">
          <el-col>
            <span>第一胎：分娩日期 </span>
            <el-input v-model="pgForm.obstetric_history_input1" placeholder="" style="width: 50%"></el-input>
          </el-col>
          <el-col>
            <span>头位</span>
            <div class="grid-content">
              <el-radio-group v-model="pgForm.obstetric_history_radio1">
                <el-radio :label="1">正常分娩（顺产）</el-radio>
                <el-radio :label="2">剖腹产</el-radio>
                <el-radio :label="3">无痛分娩</el-radio>
                <el-radio :label="4">产钳</el-radio>
                <el-radio :label="5">胎头吸引</el-radio>
                <el-radio :label="6">阴道切开术</el-radio>
                <el-radio :label="7">会阴撕裂</el-radio>
                <el-radio :label="8">腹压</el-radio>
                <el-input v-model="pgForm.obstetric_history_input2" placeholder="备注"></el-input>
              </el-radio-group>
            </div>
          </el-col>
          <el-col :span="10">
            <span>第二产程延长，出生时胎重 </span>
            <el-input v-model="pgForm.obstetric_history_input3" placeholder="" style="width: 50%"></el-input>
            <span> KG</span>
          </el-col>
          <el-col :span="10" :offset="2">
            <span>孕期增加体重 </span>
            <el-input v-model="pgForm.obstetric_history_input4" placeholder="" style="width: 50%"></el-input>
            <span> KG</span>
          </el-col>
          <el-col>
            <span>产后是否有尿失禁情况 </span>
            <el-select v-model="pgForm.obstetric_history_value1" placeholder="请选择">
              <el-option
                v-for="item in optionsChanKeShi"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </el-col>
          <el-col>
            <el-input
              type="textarea"
              resize="none"
              :rows="2"
              placeholder="第二胎"
              v-model="pgForm.obstetric_history_textarea1">
            </el-input>
          </el-col>
          <el-col>
            <el-input
              type="textarea"
              resize="none"
              :rows="2"
              placeholder="第三胎"
              v-model="pgForm.obstetric_history_textarea2">
            </el-input>
          </el-col>
        </el-row>
    </div>
  </div>
</template>

<script>
export default {
  name: "obstetric_history",
  title: "产科史（分娩胎次）",
  created() {
    if(this.istrans){
      this.pgForm=this.fromdata
    }
  },
  props: {
    fromdata:{},
    istrans:false,
  },
  data(){
    return{
      optionsChanKeShi: [{
        value: '是',
        label: '是'
      }, {
        value: '否',
        label: '否'
      }],
      pgForm: {
        obstetric_history_input1: '',
        obstetric_history_input2: '',
        obstetric_history_input3: '',
        obstetric_history_input4: '',
        obstetric_history_radio1: '',
        obstetric_history_value1: '',
        obstetric_history_textarea1: '',
        obstetric_history_textarea2: '',
      }
    }
  }
}
</script>

<style scoped>
.el-row{
  margin: 10px 0;
  padding: 20px 20px;
  background-color: #f9f9f9;
  flex-wrap: wrap;
  flex-direction: row;
}
.el-col {
  margin:10px 0;
}
.el-radio-group{
  padding: 10px 20px;
}
.el-radio{
  display: block;
  margin-bottom: 15px;
}
</style>
